@extends('akl.Admin.Base-index')
@section('content')
<script>
	$('#left-bar .nav>li:nth-child(4)>.menu').addClass('on');
</script>
<div class="main-menu fadeInLeft">
	<div class="title">
		<i class="fa fa-file-text-o"></i> 添加导航
	</div>
	<ul class="act-list">
		<li>
			<a href="/Admin/Nav/index"><i class="fa fa-plus-square-o"></i>导航列表</a>
		</li>
	</ul>
</div>
<div class="main-wrap fadeInRight">
	@if (count($errors) > 0)
		<div style="color: red">
			<ul>
				@if( is_object($errors) )
					@foreach ($errors->all() as $error)
						<li>{{ $error }}</li>
					@endforeach
				@else
					{{ $errors }}
				@endif
			</ul>
		</div>
	@endif
	<form class="formPanel" action="" method="post" id="permi">
		{{csrf_field() }}
		<div class="form-group">
			<label>上级导航：</label>
			<select name="parentmenu">
				<option value="0">顶级导航</option>
				@foreach($permission as $sort)
					<option value={{$sort->id}}>{{$sort->display_name}}</option>
				@endforeach
		    </select>
		</div>
		<div class="form-group">
			<label>导航名称：</label><input type="text" name="display_name" value="" />
		</div>
		<div class="form-group">
			<label>模块：</label><input type="text" name="model" value="" />
		</div>
		<div class="form-group">
			<label>控制器：</label><input type="text" name="controller" value="" />
		</div>
		<div class="form-group">
			<label>操作：</label><input type="text" name="action" value="" />
		</div>
		<div class="form-group">
			<label>是否显示：</label>
			<label><input type="radio" name="show" value="0" checked="checked" /> 是</label>
			<label><input type="radio" name="show" value="1" /> 否</label>
		</div>

	    <input class="save-btn" type="submit" name="send" value="添加导航" />
	
	
	</form>
</div>

@endsection